<template>
	<div class="app-container">
		<el-form ref="form" :model="form" :rules="rules" label-width="80px">
			<el-row>
				<el-col :span="24">
					<el-form-item label="附件" prop="noticeTitle">
						<myFileUpload :disabled="disType" ref="myFileUpload" type="img" :fileListHttp="form.fankuiFile" name="images"
							placeholder="只能上传image/pdf文件" accept="image/gif,image/jpeg,application/pdf,image/png"
							:autoUpload="true" @uploadOk="(e)=>{form.fankuiFile = e}"></myFileUpload>
					</el-form-item>
				</el-col>
				<el-col :span="24">
					<el-form-item label="内容">
						<!-- <editor v-model="form.noticeContent" :min-height="192"/> -->
						<el-input type="textarea" v-model="form.fankuiContent" placeholder="请输入填报内容">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
		</el-form>
	</div>
</template>

<script>
	import myFileUpload from './newUploadFile.vue'
	export default {
		name: "Notice",
		components: {
			myFileUpload
		},
		data() {
			return {
				// 表单参数
				form: {
					fankuiFile:[],
					fankuiContent:null,
				},
				// 表单校验
				rules: {
					noticeTitle: [{
						required: true,
						message: "公告标题不能为空",
						trigger: "blur"
					}],
					noticeType: [{
						required: true,
						message: "公告类型不能为空",
						trigger: "change"
					}]
				},
				filePath:null,
				disType:false,
			};
		},
		created() {
		},
		methods: {
		}
	};
</script>